/*
 * @Description: 焊机状态处理
 * @Version: 1.0
 * @Date: 2024-03-12 18:50:57
 * @LastEditTime: 2024-03-12 19:35:32
 */
export function weldMachineState(id:string,weld:number){
    if(weld > 0){
        document.getElementById(id)!.attributes!.getNamedItem('dur')!.nodeValue = '0.5s'
    }else{
        document.getElementById(id)!.attributes!.getNamedItem('dur')!.nodeValue = '100000000h'
    }
}

export function rollStateFun(isStop:boolean , start:number , end:number){
    for(let i = start; i <= end; i++){
        const element = document.querySelector(`#roll${i}`);
        if (element){
            if(isStop){
                element.setAttribute('style' , 'fill : #DC143C;')
            }else{
                element.setAttribute('style' , 'fill : #00ff00;')
            }
        }
    }
}
